package com.qys.livesMall.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qys.livesMall.shop.modal.entity.H2ShopLevel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wzy
 * @since 2023-04-05
 */
@Mapper
public interface H2ShopLevelMapper extends BaseMapper<H2ShopLevel> {

    BigDecimal getMaxPlatformRatio();


    BigDecimal getUpgradeReward(@Param("minLevel")Integer minLevel, @Param("maxLevel")Integer maxLevel);

    Integer getByUpgradeConditionNum(@Param("num")long num);

}
